﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Admin
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'webShopDataSet2.Users' table. You can move, or remove it, as needed.
            this.usersTableAdapter.Fill(this.webShopDataSet2.Users);
            // TODO: This line of code loads data into the 'webShopDataSet1.OrderHead' table. You can move, or remove it, as needed.
            this.orderHeadTableAdapter1.Fill(this.webShopDataSet1.OrderHead);
            // TODO: This line of code loads data into the 'webShopDataSet.OrderHead' table. You can move, or remove it, as needed.
            this.orderHeadTableAdapter.Fill(this.webShopDataSet.OrderHead);

        }

        private void buttonSave_Click(object sender, EventArgs e)
        {
            orderHeadTableAdapter.Update(webShopDataSet);
        }

        private void buttonUserSave_Click(object sender, EventArgs e)
        {
            usersTableAdapter.Update(webShopDataSet2);
        }

        private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}
